//
// Created by 吴锐 on 2022/2/23.
//

#include <iostream>

using namespace std;

int* func(){
    int a = 10;
    return &a;
}

int main(){

    int* p = func();

    cout << *p << endl;
    cout << *p << endl;

    return 0;
}